<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jspf/must/basePath.jspf" %>
<!--后台UI组件Start-->
<%--<%@include file="/WEB-INF/jspf/zj/ligerui/LigerUI.jspf" %>--%>
<%--<%@include file="/WEB-INF/jspf/zj/ligerui/LigerUI_form.jspf" %>--%>

<!--后台UI组件End-->
<!DOCTYPE html>
<html>
    <head>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>开单</title>
        <script src="zj/jq/jquery-1.11.3.min.js"></script>
        <link rel="stylesheet" href="zj/uikit/css/uikit.gradient.min.css" />
        <script src="zj/uikit/js/uikit.min.js"></script>
        <link rel="stylesheet" href="zj/uikit/css/components/sticky.min.css" />
        <script src="zj/uikit/js/components/sticky.min.js"></script> 
        <script>
            $(function () {
                selectKD_NOWSelect();
            });

            function selectKD_NOWSelect() {
                $.post("view/buy/order/fwy/kd/select/order.imy", {}, function (data) {
                    $("#DIV_KDS_CODE").html(data.order_code);
                    $("#DIV_KDS_ROOM").html(data.room_code + "(" + data.room_name + ")");
                    $("#DIV_KDS_TIME").html(data.order_time);
                    var sort = data.order_sort;
                    if (sort == "0") {
                        sort = "未付款";
                    }
                    if (sort == "1") {
                        sort = "已付款";
                    }
                    if (sort == "2") {
                        sort = "开立"
                    }
                    $("#DIV_KDS_SORT").html(sort);
                }, "json");
            }
        </script>

    </head>
    <body>
        <div>
            <table>
                <tr>
                    <td>单号:<div id="DIV_KDS_CODE"></div></td><td>房间:<div id="DIV_KDS_ROOM"></div></td>
                    <td>开单时间:<div id="DIV_KDS_TIME"></div></td><td>状态:<div id="DIV_KDS_SORT"></div></td>
                </tr>
            </table>
        </div>
    </body>
</html>
